package cc.io24.knewcafe.boss.service;

import cc.io24.knewcafe.boss.dao.SysPermissionDao;
import cc.io24.knewcafe.boss.domain.SysPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysPermissionService extends BaseService<SysPermission> {

    @Autowired
    public void setDao(SysPermissionDao dao) {
        super.setDao(dao);
    }

    public String[] getPermissionsCodeStringArrayByUsername(String username){
        return ((SysPermissionDao)this.getDao()).findAllByUsername(username);
    }

}


